﻿@{
    ViewBag.Title = "工作经验";
}
@section header{

}
<form id="form1">
    <div class="form-layout">
        <input type="hidden" name="ID" value="" />
        <table class="form">
            <tr>
                <th class="formTitle">开始时间</th>
                <td class="formValue">
                    <input id="BeginDate" name="BeginDate" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">结束时间</th>
                <td class="formValue">
                    <input id="EndhDate" name="EndhDate" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">公司</th>
                <td class="formValue">
                    <input id="Company" name="Company" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">职位</th>
                <td class="formValue">
                    <input id="Position" name="Position" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">工作描述</th>
                <td class="formValue">
                    <input id="JobDescription" name="JobDescription" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">证明人</th>
                <td class="formValue">
                    <input id="Voucher" name="Voucher" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">联系方式</th>
                <td class="formValue">
                    <input id="Contact" name="Contact" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">工作类型</th>
                <td class="formValue">
                    <input id="Type" name="Type" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

        </table>
    </div>
</form>

@section scripts{
    <script>
        var baseUrl = "/Personnel/WorkResume/";
        var keyValue = $.request("keyValue");
        $(function () {
            initControl();
            if (!!keyValue) {
                $.ajax({
                    url: baseUrl + "GetFormJson",
                    data: { keyValue: keyValue },
                    dataType: "json",
                    async: false,
                    success: function (data) {
                        $("#form1").formSerialize(data);
                    }
                });
            }
        });
        function initControl() {

        }
        function submitForm() {
            if (!$('#form1').formValid()) {
                return false;
            }
            $.submitForm({
                url: baseUrl + "SubmitForm?keyValue=" + keyValue,
                param: $("#form1").formSerialize(),
                success: function () {
                    $.currentWindow().$("#gridList").resetSelection();
                    $.currentWindow().$("#gridList").trigger("reloadGrid");
                }
            })
        }
    </script>
}